123456/PO PHP H5/Timme - Jisse/index.php
<?php
include('db1.php');
?>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<?php
echo '<h1>Gamemakers</h1>';
$query = "select * from Gamemakers";
$result = mysqli_query($db1, $query) or die(mysqli_error($db1) .": $query");
echo "<div class=knoppen> ";
while($row = mysqli_fetch_array($result)){
echo "<h2><a href='gamemakersdetails.php?bedrijfid=$row[bedrijfid]'>$row[Naam_game]</a></h2>\n";
}
echo "</div>";
?>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse